package com.shop.service;

import com.shop.bean.Category;
import com.shop.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICategoryService {
    int addCategory(Category category);
    int deleteCategory(int id);
    int editCategory(Category category);
    List<Category> selectCategories(Page page, String text);
    Category getCategoryById(int id);
    List<Category> getChildren(int id);
    int getCount(String text);
}